package com.ad.backstage.model;

import com.ad.backstage.model.base.BaseModel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品明细表
 * </p>
 *
 * @author gdx
 * @since 2021-03-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ItemDetail对象", description="商品明细表")
public class ItemDetail extends BaseModel implements Serializable {

private static final long serialVersionUID=1L;


    @ApiModelProperty(value = "品类id")
    private Long classId;

    @ApiModelProperty(value = "商家id")
    private Long merchantId;

    @ApiModelProperty(value = "原价")
    private BigDecimal originalPrice;

    @ApiModelProperty(value = "折扣价")
    private BigDecimal discountPrice;

    @ApiModelProperty(value = "结算类型(0按原价结算，1按折扣价结算)")
    private Integer payType;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "上下架状态(1/0)")
    private Integer status;

    @ApiModelProperty(value = "描述")
    private String description;

}
